package data类;

import java.util.Date;

public class 做计算分析 {
    public static void main(String[] args) {

        long startTime = new Date().getTime();

        for (int i=0; i < 1000000; i++) {
            System.out.println("输出："+i);
        }

        long endTime = new Date().getTime();

        System.out.println("运行耗时："+(endTime - startTime) / 1000.0+"s");
    }
}
